#ifndef _LV_MAIN_H_
#define _LV_MAIN_H_

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <signal.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/select.h>

#include "lvgl.h"
#include "lvgl/lvgl.h"

#include "cJSON.h"
#include "rabbitmq_client.h"

#include "wifi.h"

#include "common.h"
#include "MainPage.h"
#include "data_process.h"
#include "gpio.h"

// rabbitmq 使能
#define RABBITMQ_ENABLE 1
// arm 使能
#define ARM_ENABLE 0

#if 1
#define FS_PREFIX "."
#else
#define FS_PREFIX "/reemoon"
#endif

#define SYSTEM_CONFIG_FILE    FS_PREFIX"/config/sys-conf.json"
#define SYSTEM_CONFIG_CN_FILE FS_PREFIX"/config/sys-conf-cn.json"
#define SYSTEM_CONFIG_EN_FILE FS_PREFIX"/config/sys-conf-en.json"

typedef struct{
    uint32_t DISPLAY_W;
    uint32_t DISPLAY_H;
    uint8_t COLOR_DPP;
}lv_screen_info;

extern lv_obj_t * rm_kb;
extern lv_obj_t * rm_kb_num;

extern lv_screen_info SCREEN_INFO;

extern bool SYSTEM_RUNNING_FALG;
extern bool SYSTEM_END_FALG;
#endif